#include "Image.h"

namespace ISNW
{
namespace video
{
	core::dimention2di Image::getDimention() const
	{
		return Dimention;
	}

	color32 Image::getPixel(u32 i,u32 j) const
	{
		if(i >= Dimention.width || j >= Dimention.height) return color32(0,0,0,0);

		return Data[i*Dimention.width+j];
	}

} // end namespace video
} // end namespace ISNW